﻿
CREATE PROCEDURE [dbo].[_GenListaProgramari] 
	-- Add the parameters for the stored procedure here
	@LaData datetime
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	SELECT * FROM ListaProgramari WHERE YEAR(Data) = YEAR(@ladata) AND MONTH(Data) = MONTH(@ladata) AND DAY(Data) = DAY(@ladata)
END